﻿@model MVCUserInput.Model.ToDo
@{
    ViewBag.Title = "Details";
}


<h2>Details</h2>
<h3>@Model.Task</h3>
<h3>@Model.ToDoId</h3>
<h3>@Model.DateCreated</h3>
<h3>@Model.DateCompleted</h3>
<h3></h3>
@{
    if (Model.DateCompleted != null)
    {
        @Html.ActionLink("Task Not Completed", "TaskUnComplete", new { Coffee = Model.ToDoId })
    }
    else
    {
        @Html.ActionLink("Task Is Completed", "TaskComplete", new { Coffee = Model.ToDoId })
    }
}